import request from '@/utils/request'

export function getOrderList(params) {
  return request({
    url: '/orders',      // ← 改成后端实际路径
    method: 'get',
    params
  })
}
export function getOrderDetail(orderId) {
  return request({
    url: `/orders/${orderId}`,  // 看你后端接口路径是啥
    method: 'get'
  })
}

export function getOrderTrack(orderId) {
  return request({
    url: `/order/track/${orderId}`,   // ← 按后端实际路径改
    method: 'get'
  })
}

export function getReviewList(params) {
  return request({
    url: '/reviews/list',      // ← 改成后端实际路径
    method: 'get',
    params
  })
}

export function getReviewDetail(params) {
  return request({
    url: '/reviews/list',      // ← 改成后端实际路径
    method: 'get',
    params
  })
}